 package gov.sat.tax.fwsk.wlrz;
 
 import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
 
 public class WlrzConst
 {
   private static boolean isDebug = true;
   private static boolean isRemoteDB = false;
   private static boolean isSupGDZC = false;
   private static boolean isNeedPwd = false;
   private static String host = null;
   private static String encode = null;
   private static Properties pro = null;
   
   public static void init()
   {
     if (pro == null) {
       try
       {
         pro = new Properties();
         
         InputStream is = WlrzConst.class.getClassLoader().getResourceAsStream(
           "/SysCfg.properties");
         pro.load(is);
       }
       catch (IOException e)
       {
         e.printStackTrace();
       }
     }
     isSupGDZC = 
       Boolean.valueOf(pro.getProperty("isSupGDZC")).booleanValue();
     isNeedPwd = Boolean.valueOf(pro.getProperty("isNeedPwd"))
       .booleanValue();
     isDebug = Boolean.valueOf(pro.getProperty("debug")).booleanValue();
     encode = pro.getProperty("encode");
     System.out.println("----------------网上认证系统参数初始� ---------------");
     System.out.println("    debug = " + isDebug);
     System.out.println("    encode = " + encode);
     System.out.println("    isSupGDZC = " + isSupGDZC);
     System.out.println("    isNeedPwd = " + isNeedPwd);
     System.out.println("--------------网上认证系统参数初始化完� -------------");
   }
   
   public static boolean isRemoteDB()
   {
     return isRemoteDB;
   }
   
   public static boolean isSupGDZC()
   {
     return isSupGDZC;
   }
   
   public static boolean isNeedPwd()
   {
     return isNeedPwd;
   }
   
   public static String getHost()
   {
     return host;
   }
   
   public static boolean isDebug()
   {
     return isDebug;
   }
 }

/* Location:           D:\htjs\document\wsrz\WsrzEjbInf\ * Qualified Name:     gov.sat.tax.fwsk.wlrz.WlrzConst * JD-Core Version:    0.7.0.1 */